#include <stdio.h>
int main()
{
	int t=0,s=0,n=0;
	char c;
	while((c=getchar())!=EOF)
		t+=c=='\t',s+=c==' ',n+=c=='\n';
	printf("%d %d %d",s,t,n);
}